package com.fas.system.domain.vo;

import com.fas.common.annotation.Excel;
import com.fas.system.domain.FasInspectionRecordData;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class InspectionRecodeVo implements Serializable {

    private Integer id;//主键
    @Excel(name = "设施编号")
    private Integer facilityId;//设施id
    @Excel(name = "巡检员")
    private Integer inspector;//巡检员
    private String inspectionResultOld;//巡检前结果
    private String inspectionResultNew;//巡检后结果
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "巡检时间")
    private Date inspectionDate;//巡检时间
    private String inspectionImageList;//问题上报的图片
    private Integer treatmentMethod;//处理方式（0：现场处理，1：上报工单）
    @Excel(name = "备注")
    private String remark;//备注
    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    private Long fasInspectionTaskId;//巡检任务id
    private Integer wordOrderId;//工单id
    private Integer deptId;//单位编号
    @Excel(name = "单位名称")
    private String deptName;//单位名称
    @Excel(name = "设施类型名称")
    private String facilityTypeName;//设施类型名称
    private Integer facilityTypeId;//设施类型id
    @Excel(name = "建筑名称")
    private String buildingName;//建筑名称
    @Excel(name = "楼层")
    private Integer floor;//楼层
    @Excel(name = "设施位置")
    private String position;//设施位置
    @Excel(name = "检查员名字")
    private String iName;//检查员名字
    @Excel(name = "电话号码")
    private String phonenumber;//电话号码
    @Excel(name = "设施分布" ,readConverterExp = "0=室内,1=室外")
    private Integer  facilitiesDistribution ;//设施分布，室内或者室外（0：室内，1：室外）
    @Excel(name = "巡检结果",readConverterExp = "1=正常,2=异常")
    private Integer inspectionResult;//巡检结果(1:正常，2：异常)
    private String facilityNumber;//设施编号
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date plannedCompletionTime;//计划完成时间
    private Integer cooperationCompanyId; //合作单位id
    @Excel(name = "合作单位名称")
    private String companyName; //合作单位名称

    private List<FasInspectionRecordData> recordDataList;

}
